package com.maigao.entity.enums;

/**
 * @program: denyhub
 * @description:
 * @author: yongza
 * @create: 2021-08-18 17:33
 **/
public enum ResultStatus {
    SUCCESS(0, "操作成功"),
    FAIL(1, "操作失败"),
    TOKEN_FAIL(2, "Token失效"),
    ERROR(-1, "系统异常"),
    NO_DATA(3, "无数据");
    private Integer value;
    private String name;

    ResultStatus(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
